<template>
  <div class="home-container">
    <!-- 系统标题 -->
    <header class="system-header">
      <h1>欢迎使用威龙图书借阅系统</h1>
      <p>让阅读触手可及，让知识自由流动</p>
    </header>

    <!-- 借阅流程指引 -->
    <section class="process-section">
      <h2 class="section-title">📚 图书借阅三步走</h2>
      <div class="step-cards">
        <div class="step-card">
          <div class="step-icon">1</div>
          <h3>查找图书</h3>
          <p>通过检索系统或分类导航找到心仪图书</p>
        </div>
        <div class="step-card">
          <div class="step-icon">2</div>
          <h3>自助借阅</h3>
          <p>在威龙数字图书上完成借阅</p>
        </div>
        <div class="step-card">
          <div class="step-icon">3</div>
          <h3>按时归还</h3>
          <p>请在借阅期内归还至任意校区图书馆</p>
        </div>
      </div>
    </section>

    <!-- 借阅须知 -->
    <section class="notice-section">
      <h2 class="section-title">❗ 借阅须知</h2>
      <div class="notice-list">
        <div class="notice-item">
          <div class="notice-icon">📅</div>
          <div>
            <h3>借阅期限</h3>
            <p>30天</p>
          </div>
        </div> 
        <div class="notice-item">
          <div class="notice-icon">⏰</div>
          <div>
            <h3>续借规则</h3>
            <p>可续借1次（相同时长），逾期不可续借</p>
          </div>
        </div>
        <div class="notice-item">
          <div class="notice-icon">💸</div>
          <div>
            <h3>逾期费用</h3>
            <p>0.2元/天/册，最高不超过图书原价</p>
          </div>
        </div>
        <div class="notice-item">
          <div class="notice-icon">📖</div>
          <div>
            <h3>损坏赔偿</h3>
            <p>轻微损坏修补，严重损坏按原价1-3倍赔偿</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: 'LibraryHome',
  // 后续可添加数据逻辑
}
</script>

<style scoped>
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.system-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #42b983 0%, #358f6c 100%);
  border-radius: 12px;
  color: white;
}

.system-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 流程步骤样式 */
.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.step-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 50px;
  height: 50px;
  background: #42b983;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* 须知列表样式 */
.notice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notice-item:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .system-header h1 {
    font-size: 2rem;
  }

  .step-cards,
  .notice-list {
    grid-template-columns: 1fr;
  }

  .notice-item {
    flex-direction: column;
    text-align: center;
  }
}
</style>